/**
 * 
 */
package com.gf.common;

import java.util.UUID;

/**
 * @description UUID生成器
 * @date   Nov 12, 2014
 * @author sss
 */
public class UUIDGenerator {
	private static UUIDGenerator instance = null;
	
	private UUIDGenerator() {
		
	}
	
	public static UUIDGenerator getInstance() {
		if(null == instance) {
			instance = new UUIDGenerator();
		}
		return instance;
	}
	
	/**
	 * 
	 * @description 获得一个32位UUID
	 * @return String
	 */
	public String getUUID32() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}
}
